package com.ylr.send.common.vo;

import com.ylr.base.common.jsr303.group.Save;
import com.ylr.base.common.jsr303.group.Update;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-06-14 21:34:47
 * className: SmsTemplateVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
@ToString
public class SmsTemplateVo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = Update.class)
    private Long id;

    /**
     * 短信渠道
     */
    @NotNull(message = "短信渠道不能为空", groups = { Save.class, Update.class})
    private Integer channel;

    /**
     * 编号
     */
    @NotBlank(message = "编号不能为空", groups = { Save.class, Update.class})
    private String code;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { Save.class, Update.class})
    private String tname;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { Save.class, Update.class})
    private String content;

    /**
     * 模板预设字段，多个值使用英文逗号分割
     */
    private String params;

    /**
     * 版本号
     */
    @NotNull(message = "版本号不能为空", groups = { Save.class, Update.class})
    private Integer version;

}
